package com.chinaunicom.create.prototype.shallowcopy;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/19 9:57
 * Description:
 */
public class Realizetype implements Cloneable{
    private String name;
    private String address;
    private SDept SDept;
    
    public Realizetype clone(){
        try {
            return (Realizetype) super.clone();
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public SDept getDept() {
        return SDept;
    }

    public void setDept(SDept SDept) {
        this.SDept = SDept;
    }

    @Override
    public String toString() {
        return "Realizetype{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", SDept=" + SDept +
                '}';
    }
}
